<?php

class Adept_Component_ActionTrigger extends Adept_Component_Control 
{
    
    protected $action = 'action';
    
    public function processRequest() 
    {
        $request = Adept_Context::getInstance()->getRequest();
        $value = $request->get($this->action);
        if ($value != null) {
            $this->invokeListenersChain($value, array($this));
        }
    }	
    
    public function getAction() 
    {
        if (!is_null($this->action)) {
            return $this->action;
        }
        return $this->getValueOfBinding('action', null);
    }
    
    public function setAction($action) 
    {
        $this->action = $action;
    }
   
    public function render() 
    {
    	
    }	
    
}